#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	long long card[14][14] = { 0 };
	card[0][0] = 1;
	for (int i = 1; i <= 13; i++)
	{
		for (int j = 0; j <= 13; j++)
		{
			for (int k = 0; k <= 4; k++)
			{
				if (j >= k)
				{
					card[i][j] += card[i - 1][j - k];
				}
			}
		}
	}
	cout << card[13][13];
	return 0;
}